package com.woniuxy.api;

import com.woniuxy.common.Result;
import com.woniuxy.form.ModifyComplainForm;
import com.woniuxy.form.ModifyDrawbackForm;
import com.woniuxy.form.OrderComplainForm;
import com.woniuxy.form.OrderDrawbackForm;
import org.springframework.web.bind.annotation.*;

public interface OrderDrawbackApi {
    //订单退款

    /**
     * 平台操作员，处理投诉订单后，为退款时
     * 调用该接口
     * @return
     */
    @PostMapping("/creatOrderDrawback")
    Result creatOrderDrawback(@RequestBody OrderDrawbackForm orderDrawbackForm);


    /**
     * 平台操作员协调后 修改该表信息
     * @param modifyDrawbackForm
     * @return
     */
    @PutMapping("/modifyOrderDrawback")
    Result modifyOrderDrawback(@RequestBody ModifyDrawbackForm modifyDrawbackForm);

    /**
     * 根据id删除订单投诉
     * @param id
     * @return
     */
    @DeleteMapping("/delOrderDrawback")
    Result delOrderDrawback(@RequestParam(value = "id")Integer id);

    /**
     * 分页展示订单投诉信息
     * @return
     */
    @GetMapping("/pageOrderDrawback")
    Result pageOrderDrawback(@RequestParam(value = "pageIdx",required = false,defaultValue="1")Integer pageIdx);

    /**
     * 状态分页展示订单投诉信息
     * @return
     */
    @GetMapping("/pageOrderDrawbackByStatus")
    Result pageOrderDrawbackByStatus(@RequestParam(value = "pageIdx",required = false,defaultValue="1")Integer pageIdx,
                                     @RequestParam(value = "status")Integer status);

}
